# print(base.mapXYValue)
# print(base.mapNameXYValue)
# print(base.mapPriceXYValue)
# print(base.mapTaxValue)
# print(base.mapImageValue)
# print(len(base.buildings))
# import pygame
# import base
import pygame.key
import sys
import setting

# 创建窗口
window = pygame.display.set_mode(setting.windowSize)  # 创建窗口(windowSize)
pygame.display.set_caption(setting.windowName)  # 窗口名称(windowName)
pygame.display.set_icon(setting.windowIcon)  # 窗口图标(windowIcon)
window.fill(setting.color_Black)  # 窗口背景色(color)

key = pygame.key.get_pressed()
print(key[pygame.K_k])

# 窗口循环与退出
while True:  # 循环
    for event in pygame.event.get():
        key = pygame.key.get_pressed()
        if event.type == pygame.QUIT:
            sys.exit()
        elif event.type == pygame.MOUSEMOTION:
            print('鼠标移动')
        elif key[pygame.K_k]:
            print('K')
